<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>

	<link rel="stylesheet" href="<?php echo URL ;?>public/css/reset-css.css" />
	<link rel="stylesheet" href="<?php echo URL ;?>public/css/style.css" />
	<script type="text/javascript" src="<?php echo URL ;?>public/js/jquery.js" ></script>
	<script type="text/javascript" src="<?php echo URL ;?>public/js/js_lib.js" ></script>
	<script type="text/javascript" src="<?php echo URL ;?>public/js/user_action.js" ></script>
	
</head>
<body>
	<div id="container">
		<div id="header">
			<div class="wrap">
				<div class="left-header">
					<div class="logo">
							<a href="<?php echo URL ;?>index">WWG</a>
					</div>
					<div class="input">
						<form action="login/run" method="get" accept-charset="utf-8">
							<div class="inputset">
								<input type="text" name="key_search" />
								<div class="dropdownArrow expand"><div class="icon"></div></div>
							</div>
							<div class="inputset">
								<input type="text" class="drd_address" name="drd_address" />
							</div>
							<img src="<?php echo URL ;?>public/img/icon-search.png" alt="search" title="search">
						</form>
					</div>
				</div>
				<div class="right-header">
					<ul>
						<?php Session::init(); if(session::get('loggerIn') == true): ?>
						<div class="btn default_bnt">
							<a href="<?php echo URL ;?>login/logout">log out</a>
						</div>

						<?php  if(session::get('role') == 'admin'):  ?>
						<div class="btn default_bnt">
							<a href="<?php echo URL;?>control">Control</a>
						</div>
						<?php endif;?>
						
						<?php else :?>
						<li>
							<div class="btn login">
								Login
							</div>
							<div class="login-form">
								<form id="form_login" action="<?php echo URL ;?>login/run" id="form_login" method="post" accept-charset="utf-8">
									
									<p class="error" ></p>
									<span>User name :</span>
									<input type="text" name="user_name" id="user_name" />
									<span>Password :</span>
									<input type="password" name="password" id="password" />
									<p> <input type="checkbox" name="remember" value="remember">Remember me</p>
									<div class="loadding"></div>
									<input type="submit" name="submit" id="submit_login" value="Login"></input>

								</form>
							</div>
						</li>
						<li>
							<a href="<?php echo URL ;?>signup">
								<div class="btn signup">
									Sign Up
								</div>
							</a>
						</li>
						<?php endif;?>
					</ul>
				</div>
			</div>
		</div><!-- end header-->

<div id="googleMap" style="margin:0px auto;width:80%;height:500px;"></div>